<%@ page language="java" import="com.demo.util.Conn" pageEncoding="UTF-8"%>
<%
String name = request.getParameter("name");
String sex = request.getParameter("sex");
String birthday = request.getParameter("birthday");
String address = request.getParameter("address");
String phone = request.getParameter("phone");
String email = request.getParameter("email");
String stuno = request.getParameter("stuno");
String user_id = session.getAttribute("user_id").toString();

String sql = "update dbf_stuuser set name='" + name + "',sex='" + sex + "',BIRTHDAY='" + birthday;
sql = sql + "',ADDRESS='" + address + "',CONTACT_PHONE='" + phone + "',email='" + email 
	+ "',stuno='" + stuno + "' where STUUSER_ID=" + user_id;
new Conn().update(sql);

response.sendRedirect("right.jsp");
%>